home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
doom
/
turric03.zip
/
TURRIC03.ZIP
/
PROGS
/
EATGIBS.QC
< prev
next >
Wrap
Text File
|
1997-01-08
|
1KB
|
63 lines
/*
==============================================================================
EAT GIBBS
==============================================================================
*/
void() EatGibs =
{
// only a player can pick it up
if (other.classname != "player")
return;
if (other.health <= 0)
return;
// only eat gibs if desparate
//** PATCH_BEGIN - morph2 - Turrican ****
if (other.health >= 50 * other.health_modifier)
return;
//** PATCH_END - morph2 - Turrican ******
// heal a random amount of 10% health
if (!T_Heal(other, random() * 10, 0))
return;
sprint(other, "You ate a gib\n");
// gibs touch sound
sound(other, CHAN_ITEM, "zombie/z_miss.wav", 1, ATTN_NORM);
stuffcmd (other, "bf\n");
remove (self);
};
void() EatHead =
{
// only a player can pick it up
if (other.classname != "player")
return;
if (other.health <= 0)
return;
// only eat head if desparate
//** PATCH_BEGIN - morph2 - Turrican ****
if (other.health >= 50 * other.health_modifier)
return;
//** PATCH_END - morph2 - Turrican ******
// heal 15%
if (!T_Heal(other, 15, 0))
return;
sprint(other, "You ate a head\n");
// head touch sound
sound(other, CHAN_ITEM, "demon/dhit2.wav", 1, ATTN_NORM);
stuffcmd (other, "bf\n");
remove (self);
};